<?php
$this->breadcrumbs=array(
	'Gia sư'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'Danh sách gia sư', 'url'=>array('index')),
	array('label'=>'Tạo gia sư', 'url'=>array('create')),
	array('label'=>'Cập nhật gia sư', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Xóa gia sư', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản lý gia sư', 'url'=>array('admin')),
);
?>
<h1>Xem gia sư có ID là <?php echo $model->id; ?></h1>
<fieldset class="classFieldSet">
            <legend>Thông tin gia sư</legend>
            <table>
                <tr>
                    <td class="titleInput"><?php echo "Tên gia sư"; ?></td>
                    <td class="dataInput">
                        <?php echo $model->tutor_name; ?>
                    </td>
                </tr>
                <?php if($model->image_path !== "") {?>
                <tr>
                    <td class="titleInput"><?php echo "Hình"; ?></td>
                    <td class="dataInput">
                        <img src="<?php echo Yii::app()->request->baseUrl.'/images/tutors/'.$model->image_path; ?>" name="Hello" title="Alo" width="110" height="130"/>
                    </td>
                </tr>
                <?php } ?>
                <tr>
                    <td class="titleInput">Địa chỉ</td>
                    <td class="dataInput">
                        <?php echo $model->home_number."-"; ?>
                        <?php echo $model->street."-"; ?>
                        <?php echo $model->id_district; ?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Ngày sinh</td>
                    <td class="dataInput">
                        <?php echo $model->birthday;?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Giới tính</td>
                    <td class="dataInput">
                        <?php
                            if($model->sex == 1) {
                                echo "Nam";
                            } else {
                                echo "Nữ";
                            }
                            ?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Số điện thoại</td>
                    <td class="dataInput">
                        <?php echo $model->phone; ?>
                        
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Email</td>
                    <td class="dataInput">
                        <?php echo $model->email; ?>
                        
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Trình độ</td>
                    <td class="dataInput">
                        <?php
                            if($model->is_teacher == 1) {
                                echo "Giáo viên";
                            } else {
                                echo "Sinh viên";
                            }
                        ?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Trường</td>
                    <td class="dataInput">
                        <?php echo $model->school; ?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Chuyên ngành</td>
                    <td class="dataInput">
                        <?php echo $model->branch; ?>
                    </td>
                </tr>
            </table>
        </fieldset>

        <fieldset class="classFieldSet">
            <legend>Thông tin yêu cầu</legend>
            <table>
                <tr>
                    <td class="titleInput">
                        <?php echo CHtml::encode("Môn có thể dạy"); ?>
                    </td>
                    <td class="dataInput">
                       <?php echo $model->getSubjects();?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">
                        <?php echo CHtml::encode("Quận có thể dạy"); ?>
                    </td>
                    <td class="dataInput">
                        <?php echo $model->getDistricts();?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Muốn lớp giáo viên</td>
                    <td class="dataInput">
                        
                        <?php

                            if($model->want_teacher_course == 1) {
                                echo "Có";
                            } else {
                                echo "Không";
                            }
                        ?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Lương đề nghị</td>
                    <td class="dataInput">
                        <?php echo $model->school_fees; ?>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Có thể sắp xếp thời gian</td>
                    <td class="dataInput">
                        <?php
                            if($model->is_arrange == 1) {
                                echo "Có";
                            } else {
                                echo "Không";
                            }
                        ?>
                    </td>
                </tr>

                <tr>
                    <td class="titleInput">
                        TKB
                    </td>
                    <td class="dataInput">
                        <table>
                        <tr>
                            <td>

                            </td>
                            <td>
                                T2
                            </td>
                            <td>
                                T3
                            </td>
                            <td>
                                T4
                            </td>
                            <td>
                                T5
                            </td>
                            <td>
                                T6
                            </td>
                            <td>
                                T7
                            </td>
                            <td>
                                CN
                            </td>
                        </tr>
                        <tr>
                            <td>
                               Sáng
                            </td>
                            <td>
                                <?php echo $model->date1 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date2 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date3 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date4 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date5 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date6 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date7 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                        </tr>
                        <tr>
                            <td>
                               Chiều
                            </td>
                            <td>
                                <?php echo $model->date8 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date9 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date10 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date11 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date12 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date13 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date14 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                        </tr>
                        <tr>
                            <td>
                               Tối
                            </td>
                            <td>
                                <?php echo $model->date15 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date16 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date17 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date18 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date19 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date20 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>

                            </td>
                            <td>
                                <?php echo $model->date21 == 1 ? '<div style="color: red">X</div>' : 'O';?><br>
                                
                            </td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td class="titleInput">Yêu cầu khác</td>
                    <td class="dataInput">
                        <?php echo $model->other_request; ?>
                    </td>
                </tr>
            </table>
        </fieldset>